package com.ygqh.baby.kids.entity.bo;

import org.apache.commons.collections4.CollectionUtils;

import java.math.BigDecimal;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @author: sunshuo
 * @date: 2019/1/10 16:32
 */
public class BiKidsOrderBo {

	private Long supplierId;

	private Long yiigooSupplierId;

	private String supplierName;

	private Long totalOrderCount;

	private BigDecimal totalOrderPrice;

	private Long totalUserCount;

	private Long payOrderCount;

	private BigDecimal payOrderPrice;

	private Long payUserCount;

	private BigDecimal totalSalePrice;

	private List<BiKidsSkuBo> skuList;

	private List<String> skuCodeList;

	private String shopType;

	private String shopName;

	public Long getSupplierId() {
		return supplierId;
	}

	public void setSupplierId(Long supplierId) {
		this.supplierId = supplierId;
	}

	public Long getYiigooSupplierId() {
		return yiigooSupplierId;
	}

	public void setYiigooSupplierId(Long yiigooSupplierId) {
		this.yiigooSupplierId = yiigooSupplierId;
	}

	public String getSupplierName() {
		return supplierName;
	}

	public void setSupplierName(String supplierName) {
		this.supplierName = supplierName;
	}

	public Long getTotalOrderCount() {
		return totalOrderCount;
	}

	public void setTotalOrderCount(Long totalOrderCount) {
		this.totalOrderCount = totalOrderCount;
	}

	public BigDecimal getTotalOrderPrice() {
		return totalOrderPrice;
	}

	public void setTotalOrderPrice(BigDecimal totalOrderPrice) {
		this.totalOrderPrice = totalOrderPrice;
	}

	public Long getTotalUserCount() {
		return totalUserCount;
	}

	public void setTotalUserCount(Long totalUserCount) {
		this.totalUserCount = totalUserCount;
	}

	public Long getPayOrderCount() {
		return payOrderCount;
	}

	public void setPayOrderCount(Long payOrderCount) {
		this.payOrderCount = payOrderCount;
	}

	public BigDecimal getPayOrderPrice() {
		return payOrderPrice;
	}

	public void setPayOrderPrice(BigDecimal payOrderPrice) {
		this.payOrderPrice = payOrderPrice;
	}

	public Long getPayUserCount() {
		return payUserCount;
	}

	public void setPayUserCount(Long payUserCount) {
		this.payUserCount = payUserCount;
	}

	public BigDecimal getTotalSalePrice() {
		return totalSalePrice;
	}

	public void setTotalSalePrice(BigDecimal totalSalePrice) {
		this.totalSalePrice = totalSalePrice;
	}

	public List<BiKidsSkuBo> getSkuList() {
		return skuList;
	}

	public void setSkuList(List<BiKidsSkuBo> skuList) {
		this.skuList = skuList;
	}

	public List<String> getSkuCodeList() {
		if (skuCodeList == null && CollectionUtils.isNotEmpty(skuList) ) {
			skuCodeList = skuList.stream().map(BiKidsSkuBo::getSkuCode).collect(Collectors.toList());
		}
		return skuCodeList;
	}

	public String getShopType() {
		return shopType;
	}

	public void setShopType(String shopType) {
		this.shopType = shopType;
	}

	public String getShopName() {
		return shopName;
	}

	public void setShopName(String shopName) {
		this.shopName = shopName;
	}
}
